<template>
  <div class="header">
    <el-page-header @back="goBack" title="返回" content="Java的基本语法">
    </el-page-header>
  </div>
</template>

<script>
  export default {
    name: "Header",
    methods: {
      goBack(){
        this.$router.push("/home")
      }
    }
  }
</script>

<style scoped>
  .header .el-page-header {
    line-height: 60px;
    color: #333;
    text-align: center;
  }
  .header >>> .el-page-header__content {
    /*margin: 0 auto;*/
  }
</style>
